import request_1 from '@/utils/request'
import globalData from '@/globalData'

const request = new request_1({
  ApiUrl: globalData.URL
});

// 获取充电卡列表
export const getCardList = (data) => {
  return request.postRequest({
    url: 'api-service/card/getCardList',
    data,
  });
};

// 添加充电卡
export const addCard = (data) => {
  return request.postRequest({
    url: 'api-service/card/addCard',
    data,
  });
};

// 删除充电卡信息
export const delCardInfo = (data) => {
  return request.postRequest({
    url: 'api-service/card/delCardInfo',
    data,
    header: 'form',
  });
};
